package com.ruoyi.web.controller.domain;


import lombok.Data;
import nonapi.io.github.classgraph.json.Id;

import javax.persistence.Column;
import javax.persistence.Table;
import java.sql.Timestamp;




import java.time.LocalDateTime;

@Data
@Table(name ="news")
public class News {
    @Id
    private int id;
    private String title;
    private String content;
    private LocalDateTime publishTime;
    private String source;
    @Column(name = "image_url")
    private String imageUrl;

    // Getters and Setters
    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

}

